package smoker.db;

import java.util.*;
import smoker.tools.*;

public interface IDBCenter {
	
	public Vector<Department> getDepartments();
	
	public Vector<User> getAllUser();
	
	public User loginValidate(User user);
	
	public int delUser(String loginID);
	
	public int getPort();
	
	public void setPort(String data);
	
	public int addUser(User addUser);
	
	public int updateUser(User editUser);
	
	public int addDpt(Department addDptInfo);
	
	public int delDpt(String dptName);
	
	public int upDateDpt(Department editDptInfo);
	
	public  Company getCompayInfo();
	
	public int upDateCompany(Company editComInfo);
	
	public User queryUser(String loginId);
}
